<div ng-controller='ImsiMacCtrl'>

    <div class="container" style="padding: 5px;"></div>

    <div class="container">

        <div class="row">
            <div class="col-sm-1 col-md-1">
            </div>

            <div class="col-xs-2 col-sm-2 col-md-1">
                <div class="btn-group">
                    <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"
                            aria-haspopup="true" aria-expanded="false">
                        {{ selected }} <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a ng-click="select_imsi()">IMSI</a></li>
                        <li><a ng-click="select_mac()">MAC</a></li>
                    </ul>
                </div>
            </div>

            <div class="col-xs-6 col-sm-6 col-md-6">
                <input class="form-control" type="text" name="name" placeholder="请输入"
                       ng-model="search_str">
            </div>
            <div class="col-xs-2 col-sm-1">
                <button type="button" class="btn btn-primary" name="button_find" ng-click="select()">查找</button>
            </div>

            <div class="col-xs-2 col-sm-1">
                <button type="button" class="btn btn-primary" name="button_check" ng-click="find()">检查</button>
            </div>

            <div class="col-sm-1 col-md-1">
            </div>
        </div>
    </div>
    <div class="container" style="padding: 5px;"></div>

    <div class="container">
        <div class="row">
            <div class="col-sm-1 col-md-1">
            </div>

            <div class="col-xs-12 col-sm-10 col-md-10">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>IMSI</th>
                        <th>MAC</th>
                        <th>频率</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="result in results">
                        <td>{{ result[0] }}</td>
                        <td>{{ result[1] }}</td>
                        <td>{{ result[2] }}</td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <div class="col-sm-1 col-md-1">
            </div>

        </div>
    </div>
</div>